﻿using System.Threading.Tasks;
using Analyze.Script;
using log4net;
using Quartz;

namespace Analyze.task
{
    /// <summary>
    /// 云财经爬虫定时任务
    /// </summary>
    [DisallowConcurrentExecution]
    class SegmAndClassifyTask:IJob
    {
        
        private static readonly ILog Log = LogManager.GetLogger(typeof(SegmAndClassifyTask));
        public void Execute(IJobExecutionContext context)
        {
            Log.Info("begin segm task");
            NewsSegmScript.Run();
            ModelsClassifyScript.Run();
            Log.Info("finish segm task");
        }
    }
    
}